package com.example.demospring5.primary.prime;

import java.util.Objects;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/7/29 14:55
 * @Version 1.0.0
 * @Description
 **/

public class IocContainer<T> {
    private T nativeModule = null;

    IocContainer(Class<T> o) throws Exception {;
        this.nativeModule =  o.newInstance();
    }

    public Object getNativeModule() {
        return nativeModule;
    }
    public T getNativeModule(Class<T> tClass) {
        return (T) nativeModule;
    }
}
